| Conditions | 2 |
| Total Lines | 7 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import { elements, resetBoxes, setStateFromIndex, state } from '../../bip39'; |
||
| 29 | |||
| 30 | function handleValidWord(value: string): void { |
||
| 31 | clearInputError(); |
||
| 32 | const wordIndex = getWordIndex(value, state.wordlist); |
||
| 33 | if (wordIndex !== -1) { |
||
| 34 | setStateFromIndex(wordIndex); |
||
| 35 | updateDisplay(); |
||
| 36 | } |
||
| 55 |